package gui.Teacher;
import java.awt.BorderLayout;
import javax.swing.JPanel;
import javax.swing.JFrame;
import javax.swing.JButton;
import java.awt.Rectangle;
import javax.swing.*;
import javax.swing.border.TitledBorder;

import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.Font;
import java.awt.SystemColor;

public class ChangeTimeGui extends JPanel {
	
	public JButton btnBack = new JButton("Back");
	private JTextField textField;
	private JTextField textField_1;
	
	public ChangeTimeGui() {
	    super();
	    setBackground(SystemColor.activeCaption);
		initialize();
}


private void initialize() {
	
	this.setSize(500, 500);
	this.setLayout(null);
	setBorder(new TitledBorder(null, "Change Time", TitledBorder.LEADING, TitledBorder.TOP, null, null));
	JLabel lblExamId = new JLabel("Exam ID");
	lblExamId.setFont(new Font("Tahoma", Font.PLAIN, 14));
	lblExamId.setHorizontalAlignment(SwingConstants.CENTER);
	lblExamId.setBounds(102, 94, 69, 22);
	add(lblExamId);
	
	textField = new JTextField();
	textField.setBounds(181, 97, 86, 20);
	add(textField);
	textField.setColumns(10);
	
	JButton btnConfirm = new JButton("Confirmation");
	btnConfirm.setFont(new Font("Microsoft New Tai Lue", Font.BOLD, 14));
	btnConfirm.addActionListener(new ActionListener() {
		public void actionPerformed(ActionEvent e) {
		}
	});
	btnConfirm.setBounds(210, 271, 135, 23);
	add(btnConfirm);
	
	JButton btnChTime = new JButton("Change Time");
	btnChTime.setEnabled(false);
	btnChTime.setBounds(120, 313, 127, 23);
	add(btnChTime);
	btnBack.setFont(new Font("Microsoft New Tai Lue", Font.BOLD, 14));
	
	
	btnBack.setBounds(282, 313, 89, 23);
	add(btnBack);
	
	JLabel lblNewTime = new JLabel("New Time");
	lblNewTime.setHorizontalAlignment(SwingConstants.CENTER);
	lblNewTime.setFont(new Font("Tahoma", Font.PLAIN, 14));
	lblNewTime.setBounds(102, 148, 69, 22);
	add(lblNewTime);
	
	textField_1 = new JTextField();
	textField_1.setBounds(181, 151, 86, 20);
	add(textField_1);
	textField_1.setColumns(10);
	
	JLabel lblNewLabel = new JLabel("Reason");
	lblNewLabel.setFont(new Font("Tahoma", Font.PLAIN, 14));
	lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
	lblNewLabel.setBounds(102, 197, 69, 22);
	add(lblNewLabel);
	
	JTextArea textArea = new JTextArea();
	textArea.setBounds(181, 198, 211, 62);
	add(textArea);
	
	
	
	
	
}
}

